<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui"
	xmlns:pe="http://primefaces.org/ui/extensions">
	<pe:importEnum type="com.sunrise.xdoc.entity.store.LyDoXuatKho" var="LyDoXuatKho" allSuffix="ALL_ENUM_VALUES" />
	<p:dialog id="phieuXuatKhoDialogId" header="Chi tiết phiếu xuất kho" widgetVar="phieuXuatKhoDialog" showEffect="fade"
		hideEffect="fade" resizable="true" modal="true" appendToBody="true" maximizable="true">
		<h:form id="phieuXuatKhoDetailFormId">
			<p:panelGrid id="phieuXuatKhoGridId" columns="2">
				<f:facet name="header">
					<p:messages autoUpdate="true" />
				</f:facet>
				<p:outputLabel value="Mã phiếu*" style="font-weight:bold" />
				<p:inputText value="#{phieuXuatKhoView.editedEntity.code}" />

				<p:outputLabel value="Lý do" style="font-weight:bold" />
				<p:selectOneMenu value="#{phieuXuatKhoView.selectedLyDo}">
					<f:selectItem itemLabel="" itemValue="" />
					<f:selectItems var="ldxk" value="#{LyDoXuatKho.ALL_ENUM_VALUES}" itemLabel="#{ldxk}" itemValue="#{ldxk}" />
				</p:selectOneMenu>

				<p:outputLabel value="Kho" style="font-weight:bold" />
				<p:selectOneMenu value="#{phieuXuatKhoView.selectedKhoId}">
					<f:selectItem itemLabel="" itemValue="" />
					<f:selectItems var="kho" value="#{phieuXuatKhoView.khos}" itemLabel="#{kho.name}" itemValue="#{kho.id}" />
				</p:selectOneMenu>

				<p:outputLabel value="Ngày tạo" style="font-weight:bold" />
				<p:calendar value="#{phieuXuatKhoView.editedEntity.ngayTao}" />

				<p:outputLabel value="Thông tin" style="font-weight:bold" />
				<p:inputText value="#{phieuXuatKhoView.editedEntity.thongTin}" />

				<p:outputLabel value="Nhân viên" style="font-weight:bold" />
				<p:inputText value="#{phieuXuatKhoView.editedEntity.nhanVien}" />

				<f:facet name="footer">
					<p:commandButton icon="ui-icon-disk" value="Save" action="#{phieuXuatKhoView.saveOrUpdate}" process="@form"
						update=":phieuXuatKhoListFormId, @form" oncomplete="if (!args.validationFailed) phieuXuatKhoDialog.hide()">
					</p:commandButton>
					<p:commandButton icon="ui-icon-cancel" value="Cancel" immediate="true" onclick="phieuXuatKhoDialog.hide()" />
				</f:facet>
			</p:panelGrid>
		</h:form>
	</p:dialog>

</ui:composition>